#pragma once
#include "DialogWnd.h"

#define IMPORTWND_CLASS_NAME			_T("ImportWnd")

class CImportWnd : public CDialogWnd
{
public:
	CImportWnd();
	LPCTSTR GetWindowClassName() const { return IMPORTWND_CLASS_NAME; };

	CStdString GetDrillFile() { return m_strDrillFile; }
	CStdString GetPorosityFile() { return m_strPorosityFile; }
	CStdString GetSaturationFile() { return m_strSaturationFile; }

protected:
	BEGIN_DUINOTIFY_MAPEX(CDialogWnd)
		ON_DUINOTIFY_TYPE("windowinit", OnWindowInit)
		ON_DUINOTIFY_CONTROL("click", "load_drill_button", OnLoadDrill)
		ON_DUINOTIFY_CONTROL("click", "load_porosity_button", OnLoadPorosity)
		ON_DUINOTIFY_CONTROL("click", "load_saturation_button", OnLoadSaturation)
		ON_DUINOTIFY_CONTROL("click", "ok_button", OnOK)
		ON_DUINOTIFY_CONTROL("click", "cancel_button", OnCancel)
	END_DUINOTIFY_MAPEX()

	void OnWindowInit(TNotifyUI& msg);
	void OnLoadDrill(TNotifyUI& msg);
	void OnLoadPorosity(TNotifyUI& msg);
	void OnLoadSaturation(TNotifyUI& msg);
	void OnOK(TNotifyUI& msg);
	void OnCancel(TNotifyUI& msg);

private:
	CEditUI* m_pDrillEdit;
	CEditUI* m_pPorosityEdit;
	CEditUI* m_pSaturationEdit;
	CStdString m_strDrillFile;
	CStdString m_strPorosityFile;
	CStdString m_strSaturationFile;
};
